package com.kerbores.blog.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.lang.Times;

import com.kerbores.utils.velocity.StringUtils;

/**
 * 留言
 * 
 * @author Ixion <br>
 *         create at 2014年11月3日
 */
@Table("b_note")
public class Note extends Entity {

	@Column("user_id")
	private int userId = -99;

	@Column("noter")
	private String noter = "路人" + StringUtils.sg(1);

	@Column("title")
	private String title;

	@Column("content")
	@ColDefine(width = 1000)
	private String content;

	@Column("note_time")
	private Date noteTime = Times.now();

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the noter
	 */
	public String getNoter() {
		return noter;
	}

	/**
	 * @param noter
	 *            the noter to set
	 */
	public void setNoter(String noter) {
		this.noter = noter;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the noteTime
	 */
	public Date getNoteTime() {
		return noteTime;
	}

	/**
	 * @param noteTime
	 *            the noteTime to set
	 */
	public void setNoteTime(Date noteTime) {
		this.noteTime = noteTime;
	}

}
